<?php 
    require_once '../../common/DBHelper.php';

    // 获取所有的id
    $id = $_POST['idArr'];
    // 根据得到的多个id删除数据
    $result = deleteLot('categories' , $id);
    $response = [
        'code' => 0,
        'msg' => '操作失败'
    ];
    if($result){
        $response['code'] = 1;
        $response['msg'] = '操作成功';
        }
    echo json_encode($response,JSON_UNESCAPED_UNICODE);
?>